<!DOCTYPE html>
        <head>
		<meta charset="utf-8">
		<title>健身中心</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<style>
			h5 {
				margin: 5px 7px;
			}
			.q1{
				width: 100%;
				margin-top: 20px;
				margin-left: 16px;
				margin-bottom: 5px;
			}
			.q2{
				width: 100%;
				height: 50px;
				text-align: center;
				font-size: 30px;
				line-height: 50px;
			}
			.mui-input-clear1{
				/* margin-left: 118px; */
			}
		</style>
	</head>
        <body>
        	<div class="mui-content">
        		<div class="q2">健身中心入会申请表</div>
        	<div class="mui-content-padded" style="margin: 5px;">     			
					<form class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>入会规定</label>
					</div>
					<div class="mui-input-row" style="height: 270px;">
						<div class="m1">1、 职工入会申请需要工会批准,工会有权拒绝申请人的申请。</div>
						<br>
						<div class="m1">2、 在场地训练中因个人原因造成身体伤害或突发疾病出现意外事故，由职工自行承担一切经济责任。</div>
						<br>
						<div class="m1">3、 有既往病史的职工要填写附表不得隐瞒。</div>
						<br>
						<div class="m1">4、	发现故意损坏健身设备者，工会有权终止健身资格，损坏物品按价赔偿。</div>
						<br>
						<div class="m1">5、 协助健身中心工作人员填写意见调查表。</div>
					</div>
				</form>
				<form class="mui-input-group" style="margin-top: 10px;">
					<div class="mui-input-row" >
						<label>自愿声明</label>
					</div>
					<div class="mui-input-row" style="height: 270px;">
						<div class="m1">1、 本人声明本申请表及随附件文件所载一切资料，依本人所知均属正确，并无遗漏。</div>
						<br>
						<div class="m1">2、 本人自愿参与健身训练，以改善身体健康水平。</div>
						<br>
						<div class="m1">3、 本人明白在健身过程中如有不适应立即停止。</div>
						<br>
						<div class="m1">4、	本人在健身过程中因不遵守中心规定，没按健身教练员指导或因自身原因造成的一切不良后果由自己承担责任。</div>
						<br>
						<div class="m1">5、 使用更衣箱时箱内不存放贵重物品，更衣箱物品不能隔夜存放。</div>
						<div class="m1">6、本人已阅读并理解，当遵守健身中心规定</div>
					</div>
				</form>
				
				<form class="mui-input-group" style="margin-top: 5px;">
				<div class="mui-button-row">
						<button type="button" class="mui-btn mui-btn-primary" onclick="tongyi()">同意，并提交</button>&nbsp;&nbsp;
					</div>
				</form>
			</div>
		</div>
		<script src="../script/mui.min.js"></script>
		<script src="../script/utils.js"></script>
		<script src="../script/jquery.min.js"></script>
		<script src="../script/JsUrl.js" type="text/javascript"></script>
        </body>
        <script type="text/javascript">
       //  		 window.onload=function(){ 
       //  	 		 var xingming = utils.getParam("xingming");
       //  	 		 var xingbie = utils.getParam("xingbie");
       //  	 		 var shenfenzheng = utils.getParam("shenfenzheng");
       //  	 		 var guoji = utils.getParam("guoji");
       //  	 		 var shengri = utils.getParam("shengri");
       //  	 		 var qq = utils.getParam("qq");
       //  	 		 var jvzhudizhi = utils.getParam("jvzhudizhi");
       //  	 		 var lianxidianhua = utils.getParam("lianxidianhua");
       //  	 		 var danweisuoshu = utils.getParam("danweisuoshu");
       //  	 		 var lianxi1 = utils.getParam("lianxi1");
       //  	 		 var lianxi2 = utils.getParam("lianxi2");
       //  	 		 var radio_1 = utils.getParam("radio_1");
       //  	 		 var radio_2 = utils.getParam("radio_2");
       //  	 		 var radio_3 = utils.getParam("radio_3");
       //  	 		 var yuanyin = utils.getParam("yuanyin");


       //  	 		 alert(xingming+xingbie+shenfenzheng+guoji);
       //  			 alert(shengri+qq+jvzhudizhi);
       //  			 alert(lianxidianhua+danweisuoshu+lianxi1+lianxi2);
       //  			 alert(radio_1 +"  "+radio_2+"  "+radio_3+"  "+yuanyin);
	     	// }
	     	function tongyi(){
	     			 var xingming = utils.getParam("xingming");
        	 		 var xingbie = utils.getParam("xingbie");
        	 		 var shenfenzheng = utils.getParam("shenfenzheng");
        	 		 var gongzuozheng = utils.getParam("gongzuozheng");
        	 		 var guoji = utils.getParam("guoji");
        	 		 var shengri = utils.getParam("shengri");
        	 		 var qq = utils.getParam("qq");
        	 		 var email =utils.getParam("email");
        	 		 var jvzhudizhi = utils.getParam("jvzhudizhi");
        	 		 var lianxidianhua = utils.getParam("lianxidianhua");
        	 		 var danweisuoshu = utils.getParam("danweisuoshu");
        	 		 var lianxi1 = utils.getParam("lianxi1");
        	 		 var lianxi2 = utils.getParam("lianxi2");
        	 		 var radio_1 = utils.getParam("radio_1");
        	 		 var radio_2 = utils.getParam("radio_2");
        	 		 var radio_3 = utils.getParam("radio_3");
        	 		 var yuanyin = utils.getParam("yuanyin");
  	 		 //alert(xingming+"-"+xingbie+"-"+shenfenzheng+"-"+guoji+"-"+gongzuozheng+"-"+guoji);
         			// alert(shengri+"-"+qq+"-"+email+"-"+jvzhudizhi);
         			// alert(lianxidianhua+"-"+danweisuoshu+"-"+lianxi1+"-"+lianxi2);
         			// alert(radio_1 +"  "+radio_2+"  "+radio_3+"  "+yuanyin);
        	 		  $.ajax({
						        url: URL_1+"insertApplication",
						        type: 'GET',
						        dataType: 'json',
						        cache: false,
						        data: {						            
									staffidno:gongzuozheng,
									name:xingming,
									gender:xingbie,
									cardtype:"",
									cardno:shenfenzheng,
									national:guoji,
									birthday:shengri,
									qqwechat:qq,
									address:jvzhudizhi,
									email:email,
									phone:lianxidianhua,
									phone1:lianxi1,
									phone2:lianxi2,
									department:danweisuoshu,
									isdisease:radio_1,
									ishurt:radio_2,
									issport:radio_3,
									goal:yuanyin
						        },
						        error: erryFunction, //错误执行方法
						        success: succFunction //成功执行方法
						    })


						    function erryFunction() {
						        mui.alert('请退出后，稍后重试', '错误');
						    }

						    function succFunction(JsonString) {
						    	mui.alert('填写成功', '提示', function() {
                                            window.location.replace("EquipmentDisplay.html");

                                        });
						    }
	     	}
        </script>
    </html>